package com.cy.teducommunitys.com.cy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ming
 * @date 2019/7/18--2019
 */
@Controller
@RequestMapping("/")
public class PageController {
	@RequestMapping("doIndexUI")
	public String homeIndex(){
		System.out.println(111);
		return "homepage";
	}
	@RequestMapping("doManageUI")
	public String manageIndex(){
		return "management";
	}
	@RequestMapping("doProjectUI")
	public String projectIndex(){
		return "projectpage";
	}
	@RequestMapping("doCommunityUI")
	public String communityIndex(){
		return "community";
	}
	@RequestMapping("dotest")
	public String testIndex(){
		return "testKindEdit";
	}
	@RequestMapping("{module}/{page}")
	public String doModuleUI(@PathVariable String page) {//@PathVariable 取url数据赋值给对应变量
		return "sys/"+page;
	}
	/*分页div页面*/
	@RequestMapping("doPageUI")
	public String doPageUI() {
		return "common/page";
	}
}
